wayland: check for support of xdg_shell interface
authorOlivier Fourdan <ofourdan@redhat.com>
Thu, 18 Feb 2016 11:00:23 +0000 (12:00 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Thu, 18 Feb 2016 14:29:01 +0000 (15:29 +0100)
commit5a253c546ad9f7f94130bfd0e9dfbe40e171f524
tree38e6df9224e36f6b811fb156b47b248a0914322d
parentd1cf970d7aed11500b3ff3a9095716e48315e4eb
wayland: check for support of xdg_shell interface

When running with a Wayland compositor which doesn't support the
xdg_shell interface, gtk+ will segfault while trying to access the
corresponding wl proxy.

Check for xdg_shell support and do not use Wayland if not present, so
that it can fallback to X11, hoping that Xwayland is usable.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=762258
gdk/wayland/gdkdisplay-wayland.c